package com.mei.demo.response;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class BaseResponse implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 3313806387086290717L;

    /**
     * 请求结果：true-成功 / false - 失败
     */
    private boolean           result;

    /**
     * 结果码
     */
    private String            resultCode;

    /**
     * 结果字符串
     */
    private String            resultString;

    /**
     * @return the result
     */
    public boolean isResult() {
        return result;
    }

    /**
     * @param result the result to set
     */
    public void setResult(boolean result) {
        this.result = result;
    }

    /**
     * @return the resultCode
     */
    public String getResultCode() {
        return resultCode;
    }

    /**
     * @param resultCode the resultCode to set
     */
    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    /**
     * @return the resultString
     */
    public String getResultString() {
        return resultString;
    }

    /**
     * @param resultString the resultString to set
     */
    public void setResultString(String resultString) {
        this.resultString = resultString;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}
